package com.ruibang.glass.etl.feign;


import com.ruibang.glass.etl.entity.BcStationHqDetail;
import com.ruibang.glass.etl.entity.GlassBindTest;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("glass-quality")
@Component
public interface QualityApi {

    @PostMapping("/api/quality/manage/glassStation/addHqInfoCache")
    @ApiOperation(value = "新增横切信息缓存", notes = "新增横切信息缓存")
    ResultBody addHqInfoCache(@RequestBody BcStationHqDetail bcStationHqDetail);


    @PostMapping("/api/quality/manage/glassStation/addGlassBindTestCache")
    @ApiOperation(value = "新增玻璃绑定缓存信息", notes = "新增玻璃绑定缓存信息")
    ResultBody addGlassBindTestCache(@RequestBody GlassBindTest glassBindTest);
}
